import 'package:flutter/material.dart';

class NanhaiLocale {
  NanhaiLocale({
    required this.order,
    this.key,
    this.displayName,
    this.locale,
  });

  String? displayName;
  String? key;
  int order;
  Locale? locale;

  factory NanhaiLocale.fromJson(Map<String, dynamic> json) => NanhaiLocale(
        order: json["order"],
        key: json["key"],
        displayName: json["displayName"],
        locale: json["locale"],
      );

  Map<String, dynamic> toJson() => {
        "order": order,
        "key": key,
        "displayName": displayName,
        "locale": locale,
      };
}
